//
//  XSImageFilterView.h
//  AudioVideo
//
//  Created by xueshan1 on 2019/10/10.
//  Copyright © 2019 xueshan1. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XSSlider.h"
#import "TNFilterColorView.h"


#define FilterViewItemWidth 80

NS_ASSUME_NONNULL_BEGIN

@interface XSImageFilterView : UIView

@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UICollectionViewFlowLayout *flowLayout;

@property(nonatomic,strong)UIImage *editedImage;
@property(nonatomic,weak)UIImageView *editedView;
@property(nonatomic,copy)void(^finishFilterCallBack)(UIImage *filterImage);

- (instancetype)initWithFrame:(CGRect)frame editedImage:(UIImage *)editedImage editedView:(UIImageView *)editedView;

- (void)hideFilterView;
- (void)showFilterView;
- (void)resetFilter;//重置滤镜

@end

NS_ASSUME_NONNULL_END
